package com.suxii.todomvi.domain.repository

import com.suxii.todomvi.domain.model.Todo
import kotlinx.coroutines.flow.Flow

interface TodoRepository {

    suspend fun insert(todo: Todo)

    suspend fun update(todo: Todo)

    suspend fun delete(todo: Todo)

    suspend fun deleteByIds(ids:Set<Int>)

    fun queryAll():Flow<List<Todo>>

}